﻿using System;
using Mono.Cecil.PE;

namespace Mono.Cecil.Metadata
{
	// Token: 0x020000F9 RID: 249
	internal sealed class ResourceBuffer : ByteBuffer
	{
		// Token: 0x06000A28 RID: 2600 RVA: 0x000059F7 File Offset: 0x00003BF7
		public ResourceBuffer() : base(0)
		{
		}

		// Token: 0x06000A29 RID: 2601 RVA: 0x0002E250 File Offset: 0x0002C450
		public uint AddResource(byte[] resource)
		{
			uint position = (uint)this.position;
			base.WriteInt32(resource.Length);
			base.WriteBytes(resource);
			return position;
		}
	}
}
